package com.wechat.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author dell
 * 用户和组的关联关系
 * @TableName user_group_link
 */
@TableName(value ="user_group_link")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserGroupLink implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private Long userid;

    /**
     * 
     */
    private Integer groupId;

    /**
     * 
     */
    private Date joinedAt;

    /**
     * 
     */
    private String userRole;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}